<!DOCTYPE html>
<html lang="fr">
<head>
  <meta charset="UTF-8" />
  <title>Beer Checker - <?php echo $this->title; ?></title>
  <link rel="icon" href="asset/img/favicon.ico" />
<?php if(isset($this->styles)) : foreach( $this->styles as $style) : ?>
  <link rel="stylesheet" type="text/css" href="<?php echo $style; ?>" />
<?php endforeach; endif; ?>

<?php if(isset($this->scripts)) : foreach( $this->scripts as $script) : ?>
  <script type="text/javascript" src="<?php echo $script; ?>"></script>
<?php endforeach; endif; ?>  
</head>
<body>

<?php $messages = Notification::getMessages(); ?>
<?php if(!empty($messages)) : ?>
  <section id="notifications">
<?php foreach ($messages as $message) : ?>
    <p class="notification notification-<?php echo $message['type']; ?>"><?php echo $message['message']; ?></p>
<?php endforeach; ?>
  </section>


<?php endif; ?>
  <header class="main" role="banner">
    <nav id="navigationBar" role="navigation">
      <div class="inner-navigation">
        <h2><?php echo $this->title; ?></h2>
        <ul>
          <li><a href="index.php" class="text-shadow">Accueil</a></li>
          <li><a href="?action=recherche" class="text-shadow">Recherche</a></li>
        </ul>
      </div>
    </nav>

<?php if(!isset($jumbo) || (isset($jumbo) && $jumbo)): ?>
    <div class="jumbotron">
        <h1>Beer Checker</h1>
        <p>Application de recherche de bières</p>
    </div>
<?php endif; ?>
  </header>


